agentmux_srv\backend\wshutil/mod.rs
1// Copyright 2025-2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! WSH RPC transport layer.
5//! Port of Go's `pkg/wshutil/` — OSC encoding, RPC proxy, event system, and I/O adapters.
6//!
7//! This module provides the communication layer between AgentMux terminals and the
8//! backend RPC system. Key components:
9//!
10//! - **OSC encoding/decoding:** Terminal escape sequences for RPC messages
11//! - **WshRpc:** Main RPC client with message routing and response handling
12//! - **WshRpcProxy:** Single-connection proxy for remote RPC
13//! - **WshMultiProxy:** Broadcast proxy for multiple connections
14//! - **EventListener:** Pub/sub event system
15//! - **I/O adapters:** Stream, PTY, WebSocket message conversion
16
17pub mod osc;
18pub mod event;
19pub mod proxy;
20pub mod rpcio;
21pub mod wshrpc;
22pub mod cmdreader;
23